import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟接口
export default defineFakeRoute([
  {
    url: "/testMock",
    method: "post",
    response: ({ body }) => {
      return {
        success: true,
        data: {
          test: "这是一个测试数据",
          testData: body.data
        }
      };
    }
  }
]);
